/*******************************************************************
 *
 * Copyright (C), 2021-2022, Letstrong, All rights reserved.
 *
 * Author      : Fengze Luo
 * Create Time : 2021-01-04
 * Version     : v0.1
 * Description : 
 *******************************************************************/
#ifndef _CENTRAL_TASK_H_
#define _CENTRAL_TASK_H_

/*----------------------------Head file----------------------------*/
#include <stdint.h>
#include "rwip_task.h" // Task definitions

/*----------------------------macro file---------------------------*/
#define CENTRAL_TRANSFER_DATA_MAX_LEN    (20)

/*----------------------------type define--------------------------*/
enum
{
    CENTRAL_ENABLE_REQ = TASK_FIRST_MSG(TASK_ID_CENTRAL),
};


struct central_ind_upd_req
{
    uint8_t conidx;
	uint8_t len;
    uint8_t value[CENTRAL_TRANSFER_DATA_MAX_LEN];
};

/// Parameters of the @ref CENTRAL_WRITER_REQ_IND message
struct central_write_ind
{
	uint8_t conidx;
	uint8_t len;
    uint8_t value[CENTRAL_TRANSFER_DATA_MAX_LEN];
};

///Parameters of the @ref CENTRAL_CREATE_DB_REQ message
struct central_db_cfg
{
    /// Supported features
    uint16_t features;
    /// Profile Configuration
    uint8_t prfl_cfg;
};

/// Features Flag Masks
enum central_features
{
    CENTRAL_IND_NOT_SUP,
    CENTRAL_IND_SUP,
};

/*----------------------------var define---------------------------*/

/*-------------------------func declaration------------------------*/

/*-----------------------------------------------------------------*/

#endif
